import React from 'react'

// 列表
export async function apiGetSpellTogetherPage(params) {
    return await React.$postJson('market/api/teamActivity/page', params);
}
//提前结束
export async function apiGetSpellTogetherEnd(params) {
    return await React.$get('market/api/teamActivity/end', params);
}
// 编辑活动 删除商品校验
export async function apiPostSpellTogetherEditDelGoods(params) {
    return await React.$get('market/api/teamActivity/delGoods', params);
}
//新建活动
export async function apiPostSpellTogetherAdd(params) {
    return await React.$postJson('market/api/teamActivity/add', params);
}

//修改活动
export async function apiPostSpellTogetherEdit(params) {
    return await React.$postJson('market/api/teamActivity/edit', params);
}
//查看活动
export async function apiGetSpellTogetherView(params) {
    return await React.$get('market/api/teamActivity/detail', params);
}
// 获取拼团开关配置
export async function apiGetPlatformSet(params) {
    return await React.$get('manage/api/b/storeInfo/switch', params);
}
//数据看板
export async function apiGetSpellTogetherDashboards(params) {
    return await React.$postJson('manage/api/b/teamStatistics/page', params);
}

//数据看板-导出
export async function apiExportDataDashboards(params) {
    return await React.$postJson('manage/api/b/teamStatistics/page', params);
}
